package com.koi.web.enums;

import com.koi.common.enums.common.IResultEnum;

/**
 * @author ･ᴗ･
 * @description [接口重载实现枚举]
 */
public enum ResultStatusEnumA implements IResultEnum {

    USER_PWD_STATUS("601", "100", "用户密码有误"),
    USER_USERNAME_STATUS("602", "100", "请输入用户名"),
    USER_PWD_STATUS_INPUT("603", "100", "请输入密码"),
    USER_CODE_STATUS_INPUT("604", "100", "请输入验证码"),
    USER_CODE_INPUT_ERROR("605", "100", "验证码输入有误"),
    USER_CODE_ERROR_CACHE("606", "100", "缓存验证码为空"),
    TOKEN_EMPTY("607", "100", "Token不能为空!"),
    TOKEN_EMPTY_EXPIRED("608", "100", "Token已过期，请重新登录!"),
    TOKEN_KOI_EMPTY_EXPIRED("999", "100", "Token为空或长时间未登录，请重新登录!"),
    TOKEN_USER_EMPTY("609", "100", "用户不存在!"),
    TOKEN_UN_VALID("610", "100", "Token无效!"),
    ORDER_ERROR_STATUS("611", "100", "订单有误"),
    EMPTY_IDS_VALID("700", "100", "请选择需要删除的数据");

    public static final Integer A1 = 100; // 用户登录
    public static final Integer A2 = 101; // 支付
    public static final Integer A3 = 102; // 产品课程

    ResultStatusEnumA(String status, String bcode, String message) {
        this.status = Integer.parseInt(IResultEnum.A.concat(bcode).concat(status)); // A -> 101+100+999
        this.message = message;
    }

    private int status;
    private String message;

    @Override
    public int status() {
        return this.status;
    }

    @Override
    public String message() {
        return this.message;
    }

}
